<?php
class ModuleCategores extends  CModel{

   public $output = array();
    public function __construct(){
    foreach(Yii::app()->modules as $key =>$item)
    {
        $this->output[] = $key;
    }

   }
    public function attributeNames()
    {
        return $this->output;
    }
}